<template>
  <transition name="my">
    <slot></slot>
  </transition>
</template>

<script>
export default {
  name: 'RouterFade'
}
</script>

<style lang="stylus" scoped>
  .my-enter
    transform: translateX(100%)
    opacity: 0
  .my-leave-to
    transform: translateX(-100%)
    opacity: 0
    position: absolute
  .my-enter-active, .my-leave-active
    transition: all 0.5s ease
</style>
